package com.bookstore.service.serviceImpl;

import com.bookstore.dao.SellerBookManagementMapper;
import com.bookstore.model.Seller;
import com.bookstore.service.SellerBookManagementService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class SellerBookManagementServiceImpl implements SellerBookManagementService {

    @Resource
    private SellerBookManagementMapper sellerBookManagementMapper;

    @Override
    public List<Seller> findSeller(Seller seller) {
        return sellerBookManagementMapper.findSeller(seller);
    }

//    @Override
//    public List<Seller> findSeller1(Seller seller) {
//        return sellerBookManagementMapper.findSeller(seller);
//    }

    @Override
    public List<Seller> kind(Seller seller) {
        return sellerBookManagementMapper.kind(seller);
    }

    @Override
    public List<Seller> findBookName(Seller seller) {
        return sellerBookManagementMapper.findBookName(seller);
    }

    @Override
    public int update(Seller seller) {
        return sellerBookManagementMapper.update(seller);
    }

}
